package com.glq.book.entity;

import java.util.Date;

public class Order {
    private Integer id;
    private String bookName;
    private String username;
    private Integer number;
    private Integer money;
    private Date buyTime;
    private String orderId;

    @Override
    public String toString() {
        return "Order{" +
                "id=" + id +
                ", bookName='" + bookName + '\'' +
                ", username='" + username + '\'' +
                ", number=" + number +
                ", money=" + money +
                ", buyTime=" + buyTime +
                ", orderId='" + orderId + '\'' +
                '}';
    }

    public Order(Integer id, String bookName, String username, Integer number, Integer money, Date buyTime, String orderId) {
        this.id = id;
        this.bookName = bookName;
        this.username = username;
        this.number = number;
        this.money = money;
        this.buyTime = buyTime;
        this.orderId = orderId;
    }

    public Order() {
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getBookName() {
        return bookName;
    }

    public void setBookName(String bookName) {
        this.bookName = bookName;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public Integer getNumber() {
        return number;
    }

    public void setNumber(Integer number) {
        this.number = number;
    }

    public Integer getMoney() {
        return money;
    }

    public void setMoney(Integer money) {
        this.money = money;
    }

    public Date getBuyTime() {
        return buyTime;
    }

    public void setBuyTime(Date buyTime) {
        this.buyTime = buyTime;
    }

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }
}
